package com.vogue.supplymall.order.domain.biz;

import com.vogue.supplymall.common.domain.dto.OrderInfo;
import com.vogue.supplymall.common.domain.dto.UserInfo;

import java.util.List;
import java.util.Map;

/**
 * The type Order biz.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-01-23
 */
public interface OrderBiz {

    /**
     * Add order.
     * 提交订单
     *
     * @param orderInfo the order info
     * @param userInfo  the user info
     * @return the map
     */
    Map<String, Long> addOrder(OrderInfo orderInfo, UserInfo userInfo);

    /**
     * Add order map.
     * 提交多个订单
     *
     * @param orderInfo the order info
     * @param userInfo  the user info
     * @return the map
     */
    List<Map<String, Long>> addMultiOrder(List<OrderInfo> orderInfo, UserInfo userInfo);

    /**
     * Find order map.
     *
     * @param orderInfo the order info
     * @param userInfo  the user info
     * @return the map
     */
    Map<String, Object> findOrder(OrderInfo orderInfo, UserInfo userInfo);
}
